#!/usr/bin/env python3

from launch import LaunchDescription
from ament_index_python.packages import get_package_share_directory
from launch.substitutions import LaunchConfiguration
import launch_ros.actions
import os

def generate_launch_description():
    sample_dir = get_package_share_directory('cpp-tbox_sample')
    return LaunchDescription([
        launch_ros.actions.Node(
            package='cpp-tbox_sample',
            executable='cpp-tbox_sample',
            arguments=[
                '-c', os.path.join(sample_dir, 'config/default.conf')
            ],
            output='screen'
        )
    ])
